package rad.framework.mda.generator.template.main.java;

import rad.framework.mda.generator.util.*;

public class PackageHtml
{
  protected static String nl;
  public static synchronized PackageHtml create(String lineSeparator)
  {
    nl = lineSeparator;
    PackageHtml result = new PackageHtml();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">" + NL + "<html>" + NL + "<body bgcolor=\"white\">" + NL + "" + NL + "<!--" + NL + "##### THIS IS THE TEMPLATE FOR THE PACKAGE DOC COMMENTS. #####" + NL + "##### TYPE YOUR PACKAGE COMMENTS HERE.  BEGIN WITH A     #####" + NL + "##### ONE-SENTENCE SUMMARY STARTING WITH A VERB LIKE:    #####" + NL + "-->";
  protected final String TEXT_2 = NL;
  protected final String TEXT_3 = " " + NL + "" + NL + "" + NL + "<!--" + NL + "<h2>Package Specification</h2>" + NL + "" + NL + "##### FILL IN ANY SPECS NEEDED BY JAVA COMPATIBILITY KIT #####" + NL + "<ul>" + NL + "  <li><a href=\"\">##### REFER TO ANY FRAMEMAKER SPECIFICATION HERE #####</a>" + NL + "</ul>" + NL + "" + NL + "<h2>Related Documentation</h2>" + NL + "" + NL + "For overviews, tutorials, examples, guides, and tool documentation, please see:" + NL + "<ul>" + NL + "  <li><a href=\"\">##### REFER TO NON-SPEC DOCUMENTATION HERE #####</a>" + NL + "</ul>" + NL + "-->" + NL + "" + NL + "<!-- Put @see and @since tags down here. -->" + NL + "" + NL + "</body>" + NL + "</html>";

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    

    org.eclipse.uml2.uml.Package uml2Package = (org.eclipse.uml2.uml.Package) argument;
    stringBuffer.append(TEXT_1);
    stringBuffer.append(TEXT_2);
    stringBuffer.append(TypeHelper.getDocumentation(uml2Package));
    stringBuffer.append(TEXT_3);
    return stringBuffer.toString();
  }
}
